import React, { Component } from 'react';

export default class ItemDate extends Component {
  render() {
    let { adddate } = this.props;
    if (adddate) {
      const arr = adddate.split(' ');
      if (arr.length > 0) {
        adddate = arr[0];
      }
    }

    return (
      <div
        className="common sysfav-list-item-info-time"
        ecId={`${this && this.props && this.props.ecId || ''}`}
      >
        {adddate}
      </div>
    );
  }
}
